﻿using System;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Content;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pazinga
{
    public class WarObject
    {
        protected float x;
        protected float y;

        protected bool alive;

        /// <summary>
        /// Gets alive value
        /// </summary>
        public bool Alive
        {
            get { return alive; }
        }

        /// <summary>
        /// Gets and Sets TankFire X axis
        /// </summary>
        public float X
        {
            set { x = value; }
            get { return x; }
        }

        /// <summary>
        /// Geta and Sets TankFire Y 
        /// </summary>
        public float Y
        {
            set { y = value; }
            get { return y; }
        }

        /// <summary>
        /// Gets the TankFire Position
        /// </summary>
        public Vector2 Position
        {
            //return new vector2 object from X and Y axis 
            get { return new Vector2(X, Y); }
        }
        
        /// <summary>
        /// Make Tank Not alive
        /// </summary>
        public void Die()
        {
            alive = false;
        }
    }
}
